.class public Lcom/waiqin365/compons/view/a;
.super Landroid/app/AlertDialog;


# instance fields
.field private a:Landroid/widget/ProgressBar;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/content/Context;

.field private d:Ljava/lang/String;

.field private e:Ljava/lang/String;

.field private f:Z

.field private g:I

.field private h:I

.field private i:Landroid/view/View;

.field private j:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/app/AlertDialog;-><init>(Landroid/content/Context;)V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->d:Ljava/lang/String;

    const-string/jumbo v0, "circle"

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->e:Ljava/lang/String;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/compons/view/a;->f:Z

    const/16 v0, 0x64

    iput v0, p0, Lcom/waiqin365/compons/view/a;->g:I

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/compons/view/a;->h:I

    iput-object p1, p0, Lcom/waiqin365/compons/view/a;->c:Landroid/content/Context;

    return-void
.end method

.method private a(I)Landroid/view/View;
    .locals 7

    const/4 v3, 0x0

    const v2, 0x7f0c08e5

    const v6, 0x7f0c0061

    const/16 v5, 0x8

    packed-switch p1, :pswitch_data_0

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->c:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0301e8

    invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->a:Landroid/widget/ProgressBar;

    invoke-virtual {v1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/compons/view/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    move-object v0, v1

    :goto_1
    return-object v0

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->c:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0301e9

    invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->a:Landroid/widget/ProgressBar;

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->a:Landroid/widget/ProgressBar;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    sget v3, Lcom/fiberhome/gaea/client/c/b;->g:I

    add-int/lit8 v3, v3, -0x14

    const/4 v4, -0x2

    invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->a:Landroid/widget/ProgressBar;

    iget-boolean v2, p0, Lcom/waiqin365/compons/view/a;->f:Z

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->a:Landroid/widget/ProgressBar;

    iget v2, p0, Lcom/waiqin365/compons/view/a;->g:I

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setMax(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->a:Landroid/widget/ProgressBar;

    iget v2, p0, Lcom/waiqin365/compons/view/a;->h:I

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setProgress(I)V

    invoke-virtual {v1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->d:Ljava/lang/String;

    if-eqz v0, :cond_0

    const-string/jumbo v0, ""

    iget-object v2, p0, Lcom/waiqin365/compons/view/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_2
    move-object v0, v1

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/compons/view/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/compons/view/a;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public a(Z)V
    .locals 1

    const/4 v0, 0x1

    invoke-virtual {p0, p1, v0}, Lcom/waiqin365/compons/view/a;->a(ZZ)V

    return-void
.end method

.method public a(ZZ)V
    .locals 1

    :try_start_0
    iput-boolean p1, p0, Lcom/waiqin365/compons/view/a;->j:Z

    invoke-virtual {p0, p2}, Lcom/waiqin365/compons/view/a;->setCancelable(Z)V

    invoke-super {p0}, Landroid/app/AlertDialog;->show()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public b(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->b:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Landroid/app/AlertDialog;->onCreate(Landroid/os/Bundle;)V

    const-string/jumbo v0, "rectangle"

    iget-object v1, p0, Lcom/waiqin365/compons/view/a;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/waiqin365/compons/view/a;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->i:Landroid/view/View;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->i:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/view/a;->setContentView(Landroid/view/View;)V

    iget-boolean v0, p0, Lcom/waiqin365/compons/view/a;->j:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/view/a;->a:Landroid/widget/ProgressBar;

    new-instance v1, Lcom/waiqin365/compons/view/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/compons/view/b;-><init>(Lcom/waiqin365/compons/view/a;)V

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_0
    return-void

    :cond_1
    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/waiqin365/compons/view/a;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/compons/view/a;->i:Landroid/view/View;

    goto :goto_0
.end method
